﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectCoursePlan.aspx.cs"
    Inherits="ZX.WebApp.TR.SelectCoursePlan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>日计划日结果</title>
<!--CSS file (default YUI Sam Skin) -->
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/container/assets/skins/sam/container.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/menu/assets/skins/sam/menu.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/button/assets/skins/sam/button.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/resize/assets/skins/sam/resize.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/layout/assets/skins/sam/layout.css" />
    <link type="text/css" rel="stylesheet" href="../Scripts/yui_2.9.0/build/datatable/assets/skins/sam/datatable.css" />
    <link href="../Scripts/yui_2.9.0/build/treeview/assets/treeview-core.css" rel="stylesheet"
        type="text/css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/fonts/fonts-min.css" />
    <link rel="stylesheet" type="text/css" href="../scripts/yui_2.9.0/build/treeview/assets/skins/sam/treeview.css" />
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/element/element-min.js"></script>
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datasource/datasource-min.js"></script>
    <!-- OPTIONAL: JSON Utility (for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/json/json-min.js"></script>
    <!-- OPTIONAL: Connection Manager (enables XHR for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/connection/connection-min.js"></script>
    <!-- OPTIONAL: Get Utility (enables dynamic script nodes for DataSource) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/get/get-min.js"></script>
    <!-- OPTIONAL: Drag Drop (enables resizeable or reorderable columns) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/dragdrop/dragdrop-min.js"></script>
    <!-- OPTIONAL: Calendar (enables calendar editors) -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/calendar/calendar-min.js"></script>
    <!-- Source files -->
    <script type="text/javascript" src="../Scripts/yui_2.9.0/build/datatable/datatable-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/layout/layout-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/button/button-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/container/container-min.js"></script>
    <script type="text/javascript" src="../scripts/yui_2.9.0/build/treeview/treeview-min.js"></script>
    <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <style type="text/css">
        .tableContent
        {
            width: 100%;
            border-collapse: collapse;
            /*border-right: solid 1px #d6e6fa;*/
            /*border-left: solid 1px #ccc;
            /*border-right: solid 1px #ccc;*/
            
        }
        .tableContent th
        {
            /*border: solid 1px #D4DBE2;*/
            font-weight: bold; /*background-color: #F2F8FF;*/
            white-space: nowrap;
            line-height: 28px;
            text-align: left;
            border-bottom: solid 1px #d6e6fa;
            padding: 0px 6px 0px 10px; 
        }
        .tableContent td
        {
            /*border: solid 1px #D4DBE2; /*background-color: #F2F8FF;*/
            white-space: nowrap;
            line-height: 26px;
            text-align: left;
            border-bottom: solid 1px #d6e6fa;
            padding: 0px 6px 0px 10px; 
        }
        a
        {
            color:Black;
            text-decoration:none;    
        }
        a:hover
        {
            color:Blue;
            text-decoration:underline;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table style="width: 100%;" border="0" align="center" cellpadding="0" cellspacing="0" class="tableContent">
        <tr>
            <td>
                  课程名称：
            </td>          <td>
                <%=kcjhStr %>
            </td>                         
            <td>
                  城市：
            </td>          <td>
                <%=city%>
            </td>
        </tr>
        <%--<tr>
            <td>
                  计划名称：
            </td>          <td>
                <%=kcjhStr %>
            </td>                         
            <td>
                  城市：
            </td>          <td>
                <%=city%>
            </td>
        </tr>--%>
         <tr>
            <td>
                  学员：
            </td>          <td>
                <%=studentName %>
            </td>
            <td>
                  准备事宜：
            </td>          <td>
                <%=prepare %>
            </td>
        </tr>
         <tr>
            <td>
                  开始时间：
            </td>          <td>
                <%=starttime %>
            </td>
            <td>
                  结束时间：
            </td>          <td>
                <%=endtime %>
            </td>
        </tr>
        <tr><td>&nbsp;</td></tr>
         <tr>
            <td>总结内容：</td><td colspan="3">
                <asp:TextBox ID="txtSum" runat="server" TextMode="MultiLine" Height="260px" 
                    Width="509px"></asp:TextBox>
            </td>
        </tr>
    </table>
    </form>
</body>
<script type="text/javascript">
    function Save() {
        var CourseId = "<%=strIndagateId %>";

        var courseSum = "";
        $('textarea[id="txtSum"]').each(function () {
            courseSum = courseSum  + $(this).val();
        });
      

        var url = "../Extend/AjaxData/DataProcessin.aspx?action=Update&entity=CourseSum&id=" + CourseId + "&courseSum=" + encodeURI(courseSum);
        YAHOO.util.Connect.asyncRequest('POST', url, {
            success: function (res) {
                var inventory;
                try {
                    inventory = JSON.parse(res.responseText);
                    if (inventory == 1) {
                        alert("保存成功!");
                        parent.closeWin();
                    } else {
                        alert("保存失败!");
                    }
                }
                catch (e) {
                }
                finally {
                }
            },
            failure: function (error) {
                alert("读取菜单数据错误：" + error.statusText);
            }
        }, null);
    }
</script>
</html>
